<p>
  <b>Login:</b>
  <%=h @user.login %>
</p>

<p>
  <b>First name:</b>
  <%=h @user.first_name %>
</p>

<p>
  <b>Last name:</b>
  <%=h @user.last_name %>
</p>

<p>
  <b>Email:</b>
  <%=h @user.email %>
</p>

<p>
  <b>Phone:</b>
  <%=h @user.phone %>
</p>

<p>
  <b>Jabber login:</b>
  <%=h @user.jabber_login %>
</p>

<p>
  <b>Location:</b>
  <%=h @user.location %>
</p>

<h2>Group membership</h2>
<%= render :partial => 'group', :collection => @user.user_groups %>

<h2>Products</h2>
<% for product in @products %>
  <p><%= link_to h(product.name), product %></p>
<% end %>

<h2>Meals</h2>
<% for meal in @meals %>
  <p><%= link_to h(meal.name), meal %></p>
<% end %>

<%= link_to 'Edit', edit_user_path(@user) %> |
<%= link_to 'Back', users_path %>
